from django.contrib import admin
from django.urls import path

from apps.areas.views import AreasView, SubAreasView, AddressView, DefaultView, UpdataView, UpdataTitle, UpdataPwd

urlpatterns = [
    path('areas/', AreasView.as_view()),
    path('areas/<area_id>/', SubAreasView.as_view()),
    path('addresses/', AddressView.as_view()),
    path('addresses/create/', AddressView.as_view()),
    path('addresses/<id>/default/', DefaultView.as_view()),
    path('addresses/<id>/', UpdataView.as_view()),
    path('addresses/<id>/', UpdataView.as_view()),
    path('addresses/<id>/title/', UpdataTitle.as_view()),
    path('password/', UpdataPwd.as_view()),

]
